<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人信息页面</title>
    <script crossorigin="anonymous" integrity="sha384-vk5WoKIaW/vJyUAd9n/wmopsmNhiy+L2Z+SBxGYnUkunIxVxAv/UtMOhba/xskxh" src="https://lib.baomitu.com/jquery/3.4.1/jquery.min.js"></script>
    <script>
        $(function () {
            var url = "../user/checkSession.action";
            var data = null;
            $.post(url,data,function (d) {
                if(d.state==0){
                    $("#user").append("<p>没有用户信息</p>");
                }else{
                    $("#user").append("<p>"+d.obj.userName+"</p>" +
                        "<p><img src=../"+d.obj.file+" alt='个人头像'></p>");
                }


            });
        })
    </script>
</head>
<body>
    <div id="user"></div>
</body>
</html>